package com.hyw.encryption.service;

/**
 * 定义注册用户或者游客用户的相关常量Key信息
 * 
 * @author Hongyu
 */
public final class EncryptionKeys {

  private EncryptionKeys() {
    throw new UnsupportedOperationException();
  }

  /**
   * 针对注册用户
   * <p>
   * hash桶，存储具体的user key store
   * <li>key为用户标记
   * <li>valude为对应的keystore
   */
  public static final String REG_STORE_KEY = "hyw:encryption:key:store:reg";

  /**
   * 针对游客（匿名）用户，用法描述与{@link REG_STORE_KEY}一致
   */
  public static final String ANONYMOUS_STORE_KEY = "hyw:encryption:key:store:anonymous";

  /**
   * 使用zset存储用户与时间的关系，主要是方便基于时间维度可以适时的清洗游客信息,score为游客的到期时间
   */
  public static final String ANONYMOUS_EXPIRED_KEY = "hyw:encryption:key:expired:anonymous";
}
